package models.repository.common;

import models.entities.OrderEntity;
import models.entities.PaginatedList;
import models.exceptions.CreateEntityException;
import models.exceptions.DeleteEntityException;
import models.exceptions.GetEntityException;

import java.io.IOException;
@Deprecated
public interface OrderRepository {
    int place(int userId) throws CreateEntityException, IOException;

    OrderEntity getOrder(int orderId) throws GetEntityException, IOException;

    PaginatedList<OrderEntity> getOrderList(int pageNumber, int pageSize) throws GetEntityException, IOException;

    void delete(int id) throws DeleteEntityException, IOException;
}
